{/*
* @author PSI
* @copyright 2015 - present
* @license GPL v3
*/}
<layout name="layout" />

<script src="{$uri}Public/Scripts/PSI/UX/CellEditing.js?dt={$dtFlag}" type="text/javascript"></script>

<script src="{$uri}Public/Scripts/PSI/Home/User/UserField.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0002/Subject/SubjectField.js?dt={$dtFlag}" type="text/javascript"></script>

<script src="{$uri}Public/Scripts/PSI/SLN0002/Voucher/MainForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0002/Voucher/EditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0002/Voucher/SelectOrgAndWordForm.js?dt={$dtFlag}"
  type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0002/Voucher/SelectPeriodForm.js?dt={$dtFlag}" type="text/javascript"></script>

<script src="{$uri}Public/Scripts/PSI/SLN0000/CodeTable/Runtime/CodeTableVoucherField.js?dt={$dtFlag}"
  type="text/javascript"></script>

<script>
  PCL.onReady(() => {
    PSI.Const.PROD_NAME = "{$productionName}";

    const app = PCL.create("PSI.App", {
      userName: "{$loginUserName}",
      productionName: "{$productionName}",
      appHeaderInfo: {
        title: "{$title}",
      }
    });

    const permission = {
      add: "{$pAdd}",
      edit: "{$pEdit}",
      del: "{$pDelete}",
      commit: "{$pCommit}",
      print: "{$pPrint}",
      refReorder: "{$pRefReorder}",
    };

    app.add(PCL.create("PSI.SLN0002.Voucher.MainForm", {
      permission
    }));
  });
</script>
